from django.db import models

from bolosdalu.models.foto import Foto


__author__ = 'Edgard JR'


class Album(models.Model):
    titulo = models.CharField(max_length=30, null=False, blank=False)
    fotos = models.ManyToManyField(Foto, db_table="bolosdalu_galeria", related_name="album")

    def __unicode__(self):
        return self.titulo

    class Meta:
        app_label = 'bolosdalu'